package com.jbookstore.dao.daoImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;

import com.jbookstore.dao.OrderDao;

public class OrderDaoImpl implements OrderDao {

	@Autowired
	private JdbcTemplate jdbcTemplate;
	
	public int selectRowCount() {

		String sql = "select count(*) from order_";	
		return this.jdbcTemplate.queryForInt(sql);
	}
}
